package com.sumainfor.pc.gmio.feign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

public interface buildingFeign {

    @RequestMapping("/key/DecoratKeyController/getplan_info_building")
    JsonResult getplan_info_building(@RequestParam("params") Map<String, Object> params, @RequestParam("pager") Pager pager);

    @RequestMapping("/key/DecoratKeyController/updateInspectStateBy")
    JsonResult updateInspectStateBy(@RequestParam("params") Map<String, Object> params);

    @RequestMapping("/key/DecoratKeyController/updateIfUpload")
    JsonResult updateIfUpload(@RequestParam("params") Map<String, Object> params);

    @RequestMapping("/key/DecoratKeyController/getArticleType")
    JsonResult getArticleType(@RequestParam("params") Map<String, Object> params);

    @RequestMapping("/key/DecoratKeyController/getarticle")
    JsonResult getarticle(@RequestParam("params") Map<String, Object> params);

    @RequestMapping("/key/DecoratKeyController/getArticleTrouble")
    JsonResult getArticleTrouble(@RequestParam("params") Map<String, Object> params);

    @PostMapping("/key/DecoratKeyController/saveTepair")
    JsonResult saveTepair(@RequestBody Map<String, Object> params);

    /**
     * 功能描述:
     * 获取所有的供应商
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/7/3 12:00
     */
    @GetMapping("/key/supplier/getSupplierList")
    List<Map<String,Object>>getSupplierList();

    /**
     * 功能描述:
     * 获取工程部结算单申请打款所有的供应商列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/7/3 12:00
     */
    @GetMapping("/key/supplier/getStatementSupplierList")
    List<Map<String,Object>>getStatementSupplierList();


    ///////////////////////////////////////////////////////////////////////////
    // 财务部
    ///////////////////////////////////////////////////////////////////////////

    /**
     * 财务部查询供应商账单数据
     *
     * @param remitId
     * @return
     */
    @PostMapping("/provider/key/supplier/getSupplierOrderInfoForRemit")
    Map<String, Object> getSupplierOrderInfoForRemit(@RequestParam("remitId") String remitId);


    /**
     * 筛选供应商 工具打款编号进行筛选出来
     *
     * @param params :supName 搜索的名字
     *               :remitIds 申请编号List
     * @return
     */
    @PostMapping("/provider/key/supplier/searchSupNameToRemitIds")
    List<String> searchSupNameToRemitIds(@RequestBody Map<String, Object> params);


    /**
     * 装修明细报表
     *
     * @param params
     * @return
     */
    @PostMapping("/key/NoRepairOrder/getPlanDetailTable")
    JsonResult getPlanDetailTable(@RequestParam Map<String, Object> params);

}
